﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SGuildParticipationInfo extends IMessageBase
    {
        public var playerId:int;
        public var name:String;
        public var carrer:int;
        public var level:int;
        public var sex:int;
        public var position:int;
        public var contributionWeek:int;
        public var worldBossTimes:int;
        public var guildWarTimes:int;
        public var guildTaskTimes:int;
        public const _type:int = 16118;
        public static var _regist:SGuildParticipationInfo = new SGuildParticipationInfo(true);

        public function SGuildParticipationInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SGuildParticipationInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.playerId);
            param1.writeString(this.name);
            param1.writeInt(this.carrer);
            param1.writeInt(this.level);
            param1.writeInt(this.sex);
            param1.writeInt(this.position);
            param1.writeInt(this.contributionWeek);
            param1.writeInt(this.worldBossTimes);
            param1.writeInt(this.guildWarTimes);
            param1.writeInt(this.guildTaskTimes);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.playerId = param1.readInt();
            this.name = param1.readString();
            this.carrer = param1.readInt();
            this.level = param1.readInt();
            this.sex = param1.readInt();
            this.position = param1.readInt();
            this.contributionWeek = param1.readInt();
            this.worldBossTimes = param1.readInt();
            this.guildWarTimes = param1.readInt();
            this.guildTaskTimes = param1.readInt();
            return;
        }// end function

    }
}
